package com.black.common.core.domain.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * 接收用户登录模型
 *
 * @author L
 */
@ApiModel(value = "AdminLoginReq", description = "后台-登录请求模型")
@Getter
@Setter
public class AdminLoginReq {

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "{notBlank.username}")
    private String username;

    @ApiModelProperty(value = "用户密码", required = true)
    @NotBlank(message = "{notBlank.password}")
    private String password;

    @ApiModelProperty(value = "验证码", required = true)
    @NotBlank(message = "{notBlank.code}")
    private String code;

    @ApiModelProperty(value = "唯一标识", required = true)
    @NotBlank(message = "{notBlank.uuid}")
    private String uuid;

    @ApiModelProperty("是否记住密码")
    private Boolean rememberMe;
}
